package com.peanut.baby.mvp.expert.live;

import com.peanut.baby.model.LiveRoom;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/7/21.
 */

public interface ExpertLiveListContract {
    interface View extends BaseView{
        void onLiveListGet(List<LiveRoom> rooms);
        void onGetLiveListFailed(int pageNo, String error);
        void onJoinSuccess(LiveRoom room);
        void onJoinFailed(String code, String reason);
    }

    interface Presenter extends BasePresenter{
        void getLiveList(String userId, int pageNo, int pageSize);
        void joinRoom(LiveRoom room);
    }
}
